﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="news.aspx.cs" Inherits="system_xtgl_news" %>
<%@ Register Assembly="MagicAjax" Namespace="MagicAjax.UI.Controls" TagPrefix="ajax" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
     <link href="../css.css" rel="stylesheet" type="text/css" />
    <script type='text/javascript' src='../shiti/js/jquery.js'></script>
    <script type='text/javascript' src='../shiti/js/jquery.simplemodal.js'></script>
    <script type='text/javascript' src='../shiti/js/basic.js'></script>
    <link type='text/css' href='../shiti/css/basic.css' rel='stylesheet' media='screen' />
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <ajax:AjaxPanel ID="AjaxPanel2" runat="server" width="100%">
    <div style="height: 480px;">
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <div style=" width:100%; height:25px; float:left; padding-top:5px; border-bottom:#CCCCCC 1px dashed">
                    <div style="width:60%;float:left;text-align:left;">   <asp:CheckBox ID="CheckBox1" runat="server"/>
                    编号：<asp:Label ID="Label1" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "pkID")%>'></asp:Label>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  新闻标题：
                     <a href="../../ReadNews.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "pkID")%>">
                     <%# LimitNum.Limit((DataBinder.Eval(Container.DataItem, "wtnewsName")).ToString(), 30)%></a>
                     </div>
                    <div style="width:40%;float:right; text-align:left">发表日期：
                    <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "wtnewsDate")).ToString("yyyy-MM-dd hh:mm:ss")%>
                    &nbsp;&nbsp;&nbsp;&nbsp;新闻类型：<%# DataBinder.Eval(Container.DataItem, "wtnewsType")%>
                    &nbsp;&nbsp;&nbsp;&nbsp;发表人：<%# DataBinder.Eval(Container.DataItem, "wtnewsMan")%>
                                   
                    </div>
                    </div>
                </ItemTemplate>       
            </asp:Repeater>
        </div>
        <div id='basic-modal'>
            <asp:CheckBox ID="CheckBox2" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged" /> 
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="CheckBox3" runat="server" Text="反选" AutoPostBack="True" OnCheckedChanged="CheckBox3_CheckedChanged" /> 
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="AbsBottom" ImageUrl="~/image/sahnchu.jpg" OnClick="ImageButton1_Click" />
           &nbsp;&nbsp;&nbsp;&nbsp;
            &nbsp;&nbsp;&nbsp;&nbsp;<a href='#' class='basic'><b>添加新闻</b></a>
            </div>
          <div>
        <webdiyer:aspnetpager id="AspNetPager1" runat="server" OnPageChanging="AspNetPager1_PageChanging" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页"
Font-Size="12px" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
ShowBoxThreshold="1" SubmitButtonText="跳转" PageIndexBoxType="DropDownList"></webdiyer:aspnetpager>
    </div>
     </ajax:AjaxPanel>
           <div id="basic-modal-content">
	    
               <table border="0" cellpadding="0" cellspacing="0" width="700">
                   <tr>
                       <td width="122" style="height: 29px; text-align: right;">
                           &nbsp;<asp:Label ID="Label1" runat="server" Text="新闻类型："></asp:Label></td>
                       <td width="344" style="height: 29px">
                           <asp:DropDownList ID="DropDownList1" runat="server" Width="129px">
                               <asp:ListItem Selected="True">请选择新闻类型</asp:ListItem>
                               <asp:ListItem>考试新闻</asp:ListItem>
                               <asp:ListItem>体育新闻</asp:ListItem>
                               <asp:ListItem>体育公告</asp:ListItem>
                               <asp:ListItem>教学动态</asp:ListItem>
                           </asp:DropDownList></td>
                       <td width="234" style="height: 29px">
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td style="height: 31px; text-align: right;">
                           &nbsp;<asp:Label ID="Label2" runat="server" Text="新闻标题："></asp:Label></td>
                       <td colspan="2" style="height: 31px">
                          <asp:TextBox ID="TextBox1" runat="server" Width="478px"></asp:TextBox></td>
                   </tr>
                   <tr>
                       <td valign="top" style="text-align: right">
                          <asp:Label ID="Label3" runat="server" Text="新闻内容："></asp:Label></td>
                       <td colspan="2" valign="top">
                          
                           <ce:editor id="Editor1" runat="server" editorwysiwygmodecss="CuteSoft_Client/example.css"
                               height="380px" themetype="Custom" width="100%"><FRAMESTYLE CssClass="CuteEditorFrame" Width="100%" 
                               Height="100%" BorderWidth="1px" BorderStyle="Solid" BorderColor="#DDDDDD" BackColor="White" /></ce:editor>
                       </td>
                   </tr>
                   <tr>
                       <td style="height: 30px; text-align: right">
                           <asp:Label ID="Label4" runat="server" Text="新闻附件："></asp:Label></td>
                       <td colspan="2" style="height: 30px">
                           <span style="color: white"><strong>
                           （注：采用单文件上传方式，可上传新闻图片或者相关资料，图片以jpg/gif/png为主！）</strong></span></td>
                   </tr>
                   <tr>
                       <td style="height: 30px; text-align: right">
                       </td>
                       <td colspan="2" style="height: 30px">
                           <asp:FileUpload ID="FileUpload1" runat="server" Width="388px" /></td>
                   </tr>
                   <tr>
                       <td style="height: 30px">
                       </td>
                       <td colspan="2" style="height: 30px">
                           <asp:FileUpload ID="FileUpload2" runat="server" Width="388px" /></td>
                   </tr>
                   <tr>
                       <td style="height: 30px">
                       </td>
                       <td colspan="2" style="height: 30px">
                           <asp:FileUpload ID="FileUpload3" runat="server" Width="388px" /></td>
                   </tr>
                   <tr>
                       <td style="height: 30px">
                       </td>
                       <td colspan="2" style="height: 30px">
                           <asp:FileUpload ID="FileUpload4" runat="server" Width="388px" /></td>
                   </tr>
                   <tr>
                       <td style="height: 30px">
                       </td>
                       <td colspan="2" style="height: 30px">
                           <asp:FileUpload ID="FileUpload5" runat="server" Width="388px" /></td>
                   </tr>
                   <tr>
                       <td style="height: 48px">
                           &nbsp;</td>
                       <td style="height: 48px">
                       
                          <anthem:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/fb1.gif" OnClick="ImageButton2_Click" />
                           &nbsp; &nbsp;&nbsp; &nbsp;
                           <anthem:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/image/fb2.gif" /></td>
                       <td style="height: 48px">
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
                   <tr>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                       <td>
                           &nbsp;</td>
                   </tr>
               </table>
    </div>  
    </div>
    </form>
</body>
</html>
